package com.cn.hty.pojo;

import java.io.Serializable;
import java.util.Date;

import javax.validation.constraints.NotNull;


public class User implements Serializable{
	
	private static final long serialVersionUID = 1L;
	
	private Long id;
	@NotNull(message="名字不能为空")
	private String name;
	@NotNull(message="密码不能为空")
	private String code;
	private String password;
	private double balance;
	private Date createdDate;
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getCode() {
		return code;
	}
	public void setCode(String code) {
		this.code = code;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public double getBalance() {
		return balance;
	}
	public void setBalance(double balance) {
		this.balance = balance;
	}
	public Date getCreatedDate() {
		return createdDate;
	}
	public void setCreatedDate(Date createdDate) {
		this.createdDate = createdDate;
	}
	
}
